Surprise Me!

How to Print Number Entered by User | C++ Examples

2023-03-09 58 Dailymotion

In this example, you'll learn to print the number entered by a user using a C++ cout statement.<br /><br />This program asks the user to enter a number.<br />When the user enters an integer, it is stored in the variable number using cin.<br />Then it is displayed on the screen using cout.<br />

Buy Now on CodeCanyon